package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLString;
import HLLib.http.HLHttpObject;

public class HLClassHttpObject extends HLLibClass {
    public HLClassHttpObject(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLHttpObject();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLHttpObject) self).SetDataReslut((HLString)args.GetObject(0));
            break;
        }
        case 1: {
            ((HLHttpObject) self).SetParms((HLString)args.GetObject(0), (HLString)args.GetObject(1), (HLString)args.GetObject(2));
            break;
        }
        case 2: {
            if (resultOwnerObject == null) {
                ((HLHttpObject) self).GetA();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLHttpObject) self).GetA());
            }
            break;
        }
        case 3: {
            if (resultOwnerObject == null) {
                ((HLHttpObject) self).GetM();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLHttpObject) self).GetM());
            }
            break;
        }
        case 4: {
            if (resultOwnerObject == null) {
                ((HLHttpObject) self).GetMd5((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLHttpObject) self).GetMd5((HLString)args.GetObject(0)));
            }
            break;
        }
        case 5: {
            if (resultOwnerObject == null) {
                ((HLHttpObject) self).GetP();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLHttpObject) self).GetP());
            }
            break;
        }
        case 6: {
            if (resultOwnerObject == null) {
                ((HLHttpObject) self).GetAuth();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLHttpObject) self).GetAuth());
            }
            break;
        }
        }
    }
}
